package com.team2.outpatient_sys.service.impl;

import com.team2.outpatient_sys.dao.PrescriptionMedicineDao;
import com.team2.outpatient_sys.pojo.Prescription;
import com.team2.outpatient_sys.pojo.PrescriptionMedicine;
import com.team2.outpatient_sys.service.PrescriptionMedicineService;
import com.team2.outpatient_sys.service.PrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PrescriptionMedicineServiceImpl implements PrescriptionMedicineService {

    @Autowired
    private PrescriptionMedicineDao prescriptionMedicineDao;
    @Override
    public int add(PrescriptionMedicine prescriptionMedicine) {
        return prescriptionMedicineDao.add(prescriptionMedicine);
    }
}
